<?php


namespace dsp\builder;


class Director
{

    /** @var Builder */
    private $builder;

    public function setBuilder(Builder $builder)
    {
        $this->builder = $builder;
    }

    public function buildMinProduct()
    {
        $this->builder->producePartA();
    }

    public function buildFullProduct()
    {
        $this->builder->producePartA();
        $this->builder->producePartB();
        $this->builder->producePartC();
    }

}